package com.twu.biblioteca;

import java.io.IOException;

public class BibliotecaApp {

    public static void main(String [ ] args) throws IOException {
        Library library = new Library();
        LibraryNumberGenerator libNumGen = new LibraryNumberGenerator();
        Menu menu = new Menu(library, libNumGen);
        Notifier message = new Notifier();
        InputReader inputReader = new InputReader();

        library.addMember("footballhead");
        library.addMember("DeanWinchester");

        library.addBookToLibrary("The Hunger Games");
        library.addBookToLibrary("Hello");
        library.addMovieToLibrary("Avatar", "James Cameron", "8.0");

        message.displayWelcomeMessage();

        while(true) {
            message.displayMenu();
            int selection = inputReader.readUserInputInt();
            menu.menuSelection(selection);

            inputReader.backToMainMenu();
        }
    }
}
